import request from '@/utils/request'

// 查询费用报销记录列表
export function listBxExpenseRecord(query) {
  return request({
    url: '/business/bxExpenseRecord/list',
    method: 'get',
    params: query
  })
}

// 查询费用报销记录详细
export function getBxExpenseRecord(id) {
  return request({
    url: '/business/bxExpenseRecord/getById?id=' + id,
    method: 'get'
  })
}

// 新增费用报销记录
export function addBxExpenseRecord(data) {
  return request({
    url: '/business/bxExpenseRecord/add',
    method: 'post',
    data: data
  })
}

// 修改费用报销记录
export function updateBxExpenseRecord(data) {
  return request({
    url: '/business/bxExpenseRecord/updateById',
    method: 'post',
    data: data
  })
}

// 删除费用报销记录
export function delBxExpenseRecord(id) {
  return request({
    url: '/business/bxExpenseRecord/delByIds/' + id,
    method: 'post'
  })
}

/*
JAVA实体类映射

    // $column.columnComment
    Long id;

    // 报销主表id
    Long expenseId;

    // 项目字典ID
    Long projectDictId;

    // 摘要
    String purpose;

    // 金额
    BigDecimal amount;

    // $column.columnComment
    Date createTime;


*/